﻿<Application x:Class="ModernUILogViewer.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:vm="clr-namespace:ModernUILogViewer.ViewModel"
             xmlns:sys="clr-namespace:System;assembly=mscorlib"
             xmlns:sys2="clr-namespace:System;assembly=System"
             xmlns:global="clr-namespace:System.Globalization;assembly=mscorlib"
             xmlns:settings="clr-namespace:ModernUILogViewer.Settings"             
             xmlns:business="clr-namespace:ModernUILogViewer.Business"                          
             StartupUri="MainWindow.xaml">
    <Application.Resources>
        <ResourceDictionary>

            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/FirstFloor.ModernUI;component/Assets/ModernUI.xaml" />
                <ResourceDictionary Source="/FirstFloor.ModernUI;component/Assets/ModernUI.Light.xaml"/>
                <ResourceDictionary Source="Assets/custom_resources.xaml" />
                <ResourceDictionary Source="Assets/chart_resources.xaml" />
            </ResourceDictionary.MergedDictionaries>

            <vm:MainViewModel x:Key="mainVM" />
            <vm:SettingsAppearanceViewModel x:Key="settingsAppearanceVM" />

            <sys:String x:Key="appTitle">Modern Log Viewer</sys:String>
            <sys:String x:Key="updateuri">http://dl.dropboxusercontent.com/u/55285635/modernlogviewer.xml</sys:String>
            <sys:String x:Key="dateformatdocurl">http://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx</sys:String>
            <sys:String x:Key="regexdocurl">http://msdn.microsoft.com/en-us/library/az24scfc(v=vs.110).aspx</sys:String>
            <sys:String x:Key="configdocurl">http://modernlogviewer.codeplex.com/documentation#Configuration</sys:String>
            <sys:String x:Key="extprogramdocurl">http://modernlogviewer.codeplex.com/documentation#External program</sys:String>
            <sys:String x:Key="filewatcherurl">http://modernlogviewer.codeplex.com/documentation#FileWatcher</sys:String>
            
            <sys2:Uri x:Key="apphomepage">http://modernlogviewer.codeplex.com</sys2:Uri>
            <sys2:Uri x:Key="appdocumentationpage">http://modernlogviewer.codeplex.com/documentation</sys2:Uri>

            <settings:AppSettings x:Key="settings" />
            <settings:ColorSettings x:Key="colorsettings" />
            <settings:RegexSettings x:Key="regexsettings" />
            <settings:FileWatcherSettings x:Key="fileWatcherOptionsVM" />
            <settings:NetworkSettings x:Key="networksettings" />
            <settings:ExtEditorSettings x:Key="exteditsettings" />
            <settings:SettingsManager x:Key="settingsmanager" />            

            <ObjectDataProvider x:Key="cultures"
                ObjectType="{x:Type global:CultureInfo}"
                MethodName="GetCultures"
                >
                <ObjectDataProvider.MethodParameters>
                    <global:CultureTypes>AllCultures</global:CultureTypes>
                </ObjectDataProvider.MethodParameters>
                <!-- avoid error 34 -->
                <ObjectDataProvider.ConstructorParameters>
                    <sys:Int32>1</sys:Int32>
                </ObjectDataProvider.ConstructorParameters>
            </ObjectDataProvider>
            
        </ResourceDictionary>
        
    </Application.Resources>
        
</Application>
    
